<template>
  <div class="dashboard-container">
    <el-row type="flex">
      <el-col :span="12" style="margin-right:20px ;">
        <el-card>
          <div class="grid-content bg-purple">
            <NumberPrice />
          </div>
        </el-card>

      </el-col>
      <el-col :span="12">
        <el-card>
          <div class="grid-content bg-purple-light">
            <HousingRatio />
          </div>
        </el-card>
      </el-col>
    </el-row>
  </div>
</template>

<script>
import NumberPrice from './components/Number_Price.vue'
import HousingRatio from './components/Housing_Ratio.vue'
import { mapGetters } from 'vuex'

export default {
  name: 'Dashboard',
  components: {
    NumberPrice,
    HousingRatio
  },
  computed: {
    ...mapGetters([
      'name'
    ])
  }
}
</script>

<style lang="scss" scoped>
.dashboard {
  &-container {
    margin: 30px;

  }
  &-text {
    font-size: 30px;
    line-height: 46px;
  }
}

</style>
